<?php
$this->breadcrumbs=array(
	'SIPMA'=>array($this->createUrl('/../sipma')),
	'Monitoring'=>array($this->createUrl('/../sipma/monitoring/default/index')),
	'Operasi'=>array('index'),
	'View Transaksi Operasi No. '.$model->id,
);
?>

<h1>View Transaksi Operasi #<?php echo $model->id; ?></h1>

<?php 
	$this->beginWidget('zii.widgets.CDetailView', array(
		'data'=>$model,
		'attributes'=>array(
			'id',
			'idJenis.keterangan',
			'pekerjaan',
			'rekanan',
			'tahap',
			'periode_awal',
			'periode_akhir',
			'kurs',
			'nilai',
			'nilai_rupiah',
		),
	)); 
	$this->endWidget();
?>

	<br/>
	
<?php 
	$this->beginWidget('zii.widgets.CDetailView', array(
		'data'=>$model,
		'attributes'=>array(
			'transaksiOperasis.idPagu.idDivisi.keterangan',
			'transaksiOperasis.idPagu.idPos.idKet.jenis_pos',
			'transaksiOperasis.idPagu.idPos.idKet.jenis_subpos',
			'transaksiOperasis.idPagu.idPos.idKet.keterangan',
			'transaksiOperasis.idPagu.nilai_rupiah',
		),
	)); 
	$this->endWidget();
?>

	<br/>

<?php 
	$this->beginWidget('zii.widgets.CDetailView', array(
		'data'=>$model,
		'attributes'=>array(
			'transaksiOperasis.surat_no',
			'transaksiOperasis.surat_tangggal',
			'transaksiOperasis.keterangan',
			'transaksiOperasis.tanda_terima',
		),
	)); 
	$this->endWidget();
?>

	<br/>
	
<?php 
	$this->beginWidget('zii.widgets.CDetailView', array(
		'data'=>$model,
		'attributes'=>array(
			'transaksiAtributs.nota_divmum_no',
			'transaksiAtributs.nota_divmum_tangggal',
			'transaksiAtributs.spk_no',
			'transaksiAtributs.spk_tangggal',
			'transaksiAtributs.po_no',
			'transaksiAtributs.po_tanggal',
		),
	)); 
	$this->endWidget();
?>

<br/>

<?php 	
	$attributes = array('idStatus.keterangan');
	if ($model->idStatus->keterangan=='Rejected') $attributes[] = 'transaksiKeteranganGagals.keterangan';
	
	$this->beginWidget('zii.widgets.CDetailView', array(
		'data'=>$model,
		'attributes'=> $attributes,
	)); 
	$this->endWidget();
?>
